<template>
  <div class="login-container">
    <div class="loginBox">
      <div class="login-form">
        <div class="title">
          <div class="title-left">
            <img src="../assets/loginLogo.png" />
            <span>黑马面面</span>
            <span>用户登录</span>
          </div>
          <!-- <div class="title-right">123</div> -->
        </div>
        <div class="login">
          <el-form ref="loginform">
            <el-form-item size="medium">
              <el-input></el-input>
            </el-form-item>
            <el-form-item>
              <el-input></el-input>
            </el-form-item>
            <el-form-item size="large">
              <el-button type="primary">登录</el-button>
            </el-form-item>
          </el-form>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'login',
  data () {
    return {}
  },
  methods: {
  },

}
</script>


<style lang="less" scoped>
.login-container {
  height: 100%;
  width: 100%;
  background: url('../assets/bg.jpg');
  -moz-background-size: 100% 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  .loginBox {
    height: 100%;
    width: 100%;
    background: url('../assets/bg.png') no-repeat 100% 100%;
    position: relative;
    .login-form {
      position: absolute;
      top: 50%;
      left: 20%;
      margin-top: -200px;
      z-index: 100;
      padding: 35px 35px 15px;
      width: 450px;
      background-color: #f5f5f5;
      .title {
        display: flex;
        justify-content: space-between;
        font-size: 22px;
        img {
          margin-right: 15px;
          vertical-align: middle;
        }
        span {
          margin-right: 20px;
        }
      }
      .login {
        .el-form-item {
          margin-top: 15px;
          ::v-deep.el-input__inner {
            height: 50px !important;
          }
          .el-button {
            font-size: 22px;
            width: 100%;
          }
        }
      }
    }
  }
}
</style>
